<div class="view" style="border: 1px solid #CCC; background: #f4f4f4;">
    <h2><?php echo $data->nome; ?> (Versão <?php echo number_format($data->versao,1); ?>)</h2>
    <p class="note" style="color: #666; font-style: italic;"><?php echo $data->descricao; ?></p>    
    
    <?php if($data->jaRespondeu($data->id_questionario,Yii::app()->user->id)): ?>
        <p><?php echo CHtml::link("Responder",array('site/responder','q'=>$data->id_questionario)); ?> | <?php echo CHtml::link("Visualizar Resultados",array('site/resultado','q'=>$data->id_questionario)); ?></p>
    <?php else: ?>
        <p><?php echo CHtml::link("Responder",array('site/responder','q'=>$data->id_questionario)); ?> | Visualizar Resultados</p>
    <?php endif; ?>
        
</div>